﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/stageWipProfile/stageWipProfile"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="stageWipProfile"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/tv/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;

        </div>
    </form>
</div>

<div>
    <a class="btn btn-green" data-toggle="dialog"
       data-url="${request.getContextPath()}/stageWipProfile/updateStageWipProfile"
       data-title="新增">新增</a>
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
        <tr>
            <th>stage</th>
            <th>run</th>
            <th>wait</th>

            <th>hold</th>
            <th>move</th>
            <th>target</th>
            <th>acc.wip</th>
            <th width="150">操作</th>

        </tr>
        </thead>
        <tbody>
        <g:each in="${stageWipProfile}" status="i" var="stageTrendInstance">
            <tr>
                <td>${stageTrendInstance.STAGE_ID}</td>
                <td>${stageTrendInstance.RUN_QTY}</td>
                <td>${stageTrendInstance.WAIT_QTY}</td>
                <td>${stageTrendInstance.HOLD_QTY}</td>
                <td>${stageTrendInstance.MOVE}</td>
                <td>${stageTrendInstance.TARGET}</td>
                <td>${stageTrendInstance.ACC_WIP}</td>
                <td>
                    <a class="btn btn-green" data-toggle="dialog"
                       data-url="${request.getContextPath()}/stageWipProfile/updateStageWipProfile?id=${stageTrendInstance.ID}"
                       data-title="编辑">编辑</a>
                    <a class="btn btn-red" data-confirm-msg="确定要删除该行信息吗？"
                       data-toggle="doajax" data-type="DELETE"
                       data-callback=function(){$.CurrentNavtab.navtab('refresh')}
                       href="${request.getContextPath()}/stageWipProfile/deleteStageWipProfile?id=${stageTrendInstance.ID}">删除</a>
                </td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>

<script type="text/javascript">
    $(function () {
        $.CurrentNavtab.find('#start-date-input,#end-date-input').datetimepicker({
            format: 'yyyy-mm-dd hh',
            autoclose: true,
            todayBtn: true,
            startView: 1,
            minView: 1,
            pickerPosition: "bottom-left",
            language: 'zh-CN',
            startDate: '2016-01-01'
        });

        $.CurrentNavtab.find('.selectpicker').selectpicker();
    })
</script>